package com.fashion.model;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * User: gnyk
 * Date: 13-2-18
 */
@Entity
@Table
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class NewsSource {
    @Id
    @Column
    private String id;

    @Column
    private String startUrl;
    @Column
    private String listSelector;
    @Column
    private String listNext;
    @Column
    private String source;
    @Column
    private Date lastUpdate;
    @Column
    private String listBasePath;
    @Column
    private String imageBasePath;

    @Column
    private String title;
    @Column
    private String introduction;
    @Column
    private String date;
    @Column
    private String dateFormat;
    @Column
    private String author;
    @Column
    private String context;
    @Column
    private String next;
    @Column
    private String nextBasePath;
    @Column
    private String imageFolder;   //for example: jiapin, hexun

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStartUrl() {
        return startUrl;
    }

    public void setStartUrl(String startUrl) {
        this.startUrl = startUrl;
    }

    public String getListSelector() {
        return listSelector;
    }

    public void setListSelector(String listSelector) {
        this.listSelector = listSelector;
    }

    public String getListNext() {
        return listNext;
    }

    public void setListNext(String listNext) {
        this.listNext = listNext;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Date getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public String getListBasePath() {
        return listBasePath;
    }

    public void setListBasePath(String listBasePath) {
        this.listBasePath = listBasePath;
    }

    public String getImageBasePath() {
        return imageBasePath;
    }

    public void setImageBasePath(String imageBasePath) {
        this.imageBasePath = imageBasePath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getNext() {
        return next;
    }

    public void setNext(String next) {
        this.next = next;
    }

    public String getNextBasePath() {
        return nextBasePath;
    }

    public void setNextBasePath(String nextBasePath) {
        this.nextBasePath = nextBasePath;
    }

    public String getImageFolder() {
        return imageFolder;
    }

    public void setImageFolder(String imageFolder) {
        this.imageFolder = imageFolder;
    }
}
